import Vue from 'vue'
import Router from 'vue-router'
import register from '@/components/user/register'
import myupload from '@/components/upload/myupload'
import login from '@/components/user/login'
import index from '@/components/index'
import cheshi from '@/components/user/cheshi'
import weixin from '@/components/zhifu/weixin'
import payple from '@/components/zhifu/payple'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/register',
      name: 'register',
      component: register,
    },
    {
      path: '/myupload',
      name: 'myupload',
      component: myupload,
    },
    {
      path: '/',
      name: 'login',
      component: login,
    },
    {
      path: '/index',
      name: 'index',
      component: index,
    },
    {
      path: '/cheshi',
      name: 'cheshi',
      component: cheshi,
    },
    {
      path: '/weixin',
      name: 'weixin',
      component: weixin,
    },
    {
      path: '/payple',
      name: 'payple',
      component: payple,
    },
  ]
})
